if [ ! -n "$2" ] ;then
    ns="core"
else
    ns=$2
fi
mvn install -N
cd seraphine-framework
mvn clean install
cd ../seraphine-api
mvn clean install
kubectl delete deployments $1 -n $ns
cd "../$1"
kubectl apply -f src/main/resources/config-map/application-config.yaml
mvn clean install fabric8:deploy -Dfabric8.generator.from=fabric8/java-jboss-openjdk8-jdk -Pkubernetes -Dfabric8.namespace=$ns
